import request from '@/utils/request'

// 交易账单导出
export function tradesbillexport(params) {
  return request({
    url: '/shop/mp/trades/bill/export',
    method: 'get',
    params
  })
}

// 退款账单导出
export function refundbillexport(params) {
  return request({
    url: '/shop/mp/trades/refund/bill/export',
    method: 'get',
    params
  })
}

// 交易账单数据
export function businessDate(params) {
  return request({
    url: '/account/businessDate',
    method: 'get',
    params
  })
}

// 交易账单列表
export function tradesbill(params) {
  return request({
    url: '/account/businessTrade',
    method: 'get',
    params
  })
}

// 退款账单数据
export function refundDate(params) {
  return request({
    url: '/account/refundDate',
    method: 'get',
    params
  })
}

// 退款账单列表
export function refundbill(params) {
  return request({
    url: '/account/refundList',
    method: 'get',
    params
  })
}

// 资金管理基础数据
export function accountfundManage(params) {
  return request({
    url: '/account/fundManage',
    method: 'get',
    params
  })
}
// 资金管理  已完成订单列表
export function financeTradeList(params) {
  return request({
    url: '/account/financeTrade',
    method: 'get',
    params
  })
}

// 提现审核列表
export function financeWithdrawsList(params) {
  return request({
    url: '/account/withdrawsList',
    method: 'get',
    params
  })
}

// 提现审核数据
export function financeWithdrawsData(params) {
  return request({
    url: '/account/withdrawsData',
    method: 'get',
    params
  })
}

// 提现审核
export function financeWithdrawVerify(params) {
  return request({
    url: `/account/withdrawVerify/${params.id}`,
    method: 'get',
    params
  })
}

// 充值审核列表
export function financeRechargeList(params) {
  return request({
    url: '/account/recharge/list',
    method: 'get',
    params
  })
}
// 充值审核
export function financeRechargeCheck(params) {
  return request({
    url: `/account/recharge/${params.id}`,
    method: 'put',
    params
  })
}
